<style type="text/less">
    @import "/web/public/public.less";
    #yzb_list.course{
        margin-bottom: 50px;
        .title{
            border-bottom: 1px solid #eeeeee;
            .title_txt{
                font-size: 20px;
                font-weight: normal;
                font-stretch: normal;
                letter-spacing: 2px;
                color: #333333;
                border-left: 5px solid #5d5d5d;
                margin-bottom: 20px;
                padding-left: 10px;
                display:inline-block;
            }
            .more{
                float: right;
                font-size: 14px;
                font-weight: normal;
                font-stretch: normal;
                letter-spacing: 0px;
                color: #7f7f7f;
                margin-top: 2px;
            }
        }
        .search_wrap{
            margin-top: 26px;
            width: 100%;
            .input_wrap{
                overflow: hidden;
                .input_center{
                    float: left;
                    display: inline-block;
                    border-radius: 4px 0 0 4px;
                    border-left: solid 2px #f67b14;
                    border-top: solid 2px #f67b14;
                    border-bottom: solid 2px #f67b14;
                    width: 480px;
                    box-sizing: border-box;
                    i{
                        font-size: 20px;
                        color: #9a9ca2;
                        line-height: 42px;
                        margin-left: 16px;
                    }
                    input{
                        width: 412px;
                        font-size: 18px;
                        line-height: 42px;
                    }
                }
                .search_btn{
                    display: inline-block;
                    width: 100px;
                    height: 48px;
                    float: left;
                    text-align: center;
                    line-height: 48px;
                    color: #ffffff;
                    cursor: pointer;
                    transition: all .3s;
                    &:hover{
                        opacity: .6;
                    }
                }
                .yzb_title{
                    background-color: #ffba00;
                }
                .yzb_full{
                    background-color: #f67b14;
                    border-radius:  0 4px 4px 0;
                }
            }
        }
        .center{
            .tags_li{
                margin-top: 24px;
                border-bottom: 3px solid #fafafa;
                h3{
                    display: inline-block;
                    a{
                        font-size: 16px;
                        font-weight: normal;
                        font-stretch: normal;
                        line-height: 18px;
                        letter-spacing: 0.4px;
                        color: #333333;
                        display: inline-block;
                        width: 540px;
                        vertical: middle;
                        .ellipsis();
                        &:hover{
                            color: #e70115;
                        }
                    }
                }
                .time{
                    font-size: 16px;
                    font-weight: normal;
                    font-stretch: normal;
                    line-height: 18px;
                    letter-spacing: 0.4px;
                    color: #a8a8a8;
                    display: inline-block;
                    vertical-align: middle;
                    float: right;
                    margin-right: 6px;
                }
                .tags_list{
                    margin-bottom: 6px;
                    margin-top: 14px;
                    .item{
                        display: inline-block;
                        border-radius: 4px;
                        color: #ffffff;
                        max-width: 300px;
                        padding: 6px 10px;
                        font-size: 14px;
                        margin-right: 4px;
                        margin-bottom: 14px;
                    }
                    .tag-color-1{
                        background: #575e6c;
                    }
                    .tag-color-2{
                        background: #6b5e56;
                    }
                    .tag-color-3{
                        background: #754251;
                    }
                    .tag-color-4{
                        background: #456782;
                    }
                }
            }

        }
    }
</style>
<div id="yzb_list" class="course">
    <div class="title">
        <h2 class="title_txt"><a href="${yzbDomain}/search?method=1&regionCode=${regionCode}&region=${regionName}" target="_blank">${channel.channelName}</a></h2>
        <a class="more" href="${yzbDomain}/search?method=1&regionCode=${regionCode}&region=${regionName}" target="_blank">更多></a>
    </div>
    <div class="search_wrap">
        <div class="input_wrap">
            <div class="input_center">
                <i class="iconfont icon-fangdajing"></i>
                <input type="text">
            </div>
            <div class="search_btn yzb_title">搜索标题</div>
            <div class="search_btn yzb_full">搜索全文</div>
        </div>
    </div>
    <ul class="center">
        <#list list as info>
            <li class="tags_li">
                <h3>
                    <a href="${info.url}" target="_blank">${info.title}</a>
                </h3>
                <p class="time">${info.projectDate?string('yyyy-MM-dd')}</p>
                <ul class="tags_list">
                    <#if info.announcementTypeName?? && info.announcementTypeName != ''><li class="item tag-color-1">${info.announcementTypeName}</li></#if>
                    <#if info.purchaseTypeName?? && info.purchaseTypeName != ''><li class="item tag-color-1">${info.purchaseTypeName}</li></#if>
                    <#if info.province?? && info.province != ''><li class="item tag-color-2">${info.province}</li></#if>
                    <#if info.purchaserName?? && info.purchaserName != ''><li class="item tag-color-2">${info.purchaserName}</li></#if>
                    <#if info.esItemAis?? && info.esItemAis?size gt 0>
                        <#list info.esItemAis as item>
                            <li class="item tag-color-3">${item.item1Name}</li>
                        </#list>
                    </#if>
                    <#if info.bidMoney??><li class="item tag-color-4">${"中标${info.bidMoney/1000000}万元"}</li></#if>
                    <#if info.budgetMoney??><li class="item tag-color-4">${"预算${info.budgetMoney/1000000}万元"}</li></#if>
                </ul>
            </li>
        </#list>
    </ul>
</div>
<script>
    var typeArray = [];
    var keyword = '';
    // 按标题搜索
    $('.yzb_title').click(function () {
        if ($('.input_center').find('input').val() == '') {
            window.open('${yzbDomain}/search?method=1&regionCode=${regionCode}&region=${regionName}')
        } else {
            keyword = $('.input_center').find('input').val();
            window.open('${yzbDomain}/search?keyword=' + keyword + '&method=1&regionCode=${regionCode}&region=${regionName}')
        }
    })

    // 按正文搜索
    $('.yzb_full').click(function () {
        if ($('.input_center').find('input').val() == '') {
            window.open('${yzbDomain}/search?method=2&regionCode=${regionCode}&region=${regionName}')
        } else {
            keyword = $('.input_center').find('input').val();
            window.open('${yzbDomain}/search?keyword=' + keyword + '&method=2&regionCode=${regionCode}&region=${regionName}')
        }
    })
</script>